package com.ant.storage.controller;


import com.ant.storage.common.ResultVo;
import com.ant.storage.service.IProvinceCityCountyService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author hzd
 * @since 2025-10-26
 */
@Api(tags = "获取城市数据列表接口")
@RestController
@RequestMapping("/city")
public class ProvinceCityCountyController {

    @Autowired
    IProvinceCityCountyService countyService;

//    @ApiOperation(value = "获取企业列表")
//    @GetMapping("/list")
//    public ResultVo list(){
//        return ResultVo.success("ok",countyService.list());
//    }
//
//
//    @ApiOperation(value = "获取企业列表")
//    @GetMapping("/listTree")
//    public ResultVo listTree(){
//        return ResultVo.success("ok",countyService.listTree());
//    }

    @ApiOperation(value = "获取单个省份数据")
    @GetMapping("/singleListTree")
    public ResultVo singleListTree(){
        return ResultVo.success("ok",countyService.singleListTree());
    }

}
